cmake_minimum_required(VERSION 3.13)
project(log C)

set(CMAKE_C_STANDARD 99)

set(FFUtil /usr/local/Cellar/ffmpeg/4.1_1/include)
set(FFLib /usr/local/Cellar/ffmpeg/4.1_1/lib)

include_directories(
        ${FFUtil}
        /Users/caijinglong/code/c/demos/ffmpeg/log/
)
link_directories(${FFLib})
link_libraries(avutil avformat)

add_executable(ls main.c)
add_executable(extra_audio extra_audio.c)
add_executable(extra_audio_example extra_audio_example.c)
add_executable(convert_exmaple convert_exmaple.c)
add_executable(mux mux.c)
add_executable(split split.c)

target_link_libraries(ls avutil avformat)
target_link_libraries(extra_audio avutil avformat)
target_link_libraries(extra_audio_example avutil avformat)
target_link_libraries(convert_exmaple avutil avformat)
